package com.Aop;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class LogTest {

        @Test
        public void test() {
            ApplicationContext context = new ClassPathXmlApplicationContext("bean3.xml");
            UserService userService = (UserService) context.getBean("userService");
            userService.search();
        }
    @Test
    public void test2() {
        ApplicationContext context = new ClassPathXmlApplicationContext("bean4.xml");
        UserService userService = (UserService) context.getBean("userService2");
        userService.search();
    }
    }
